4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
11 // You must not remove this notice, or any other, from this software.
16 namespace Microsoft
.JScript
{
18 using Microsoft
.JScript
.Vsa
;
21 public class LenientObjectPrototype
: ObjectPrototype
{
22 public new Object constructor
;
23 public new Object hasOwnProperty
;
24 public new Object isPrototypeOf
;
25 public new Object propertyIsEnumerable
;
26 public new Object toLocaleString
;
27 public new Object toString
;
28 public new Object valueOf
;
30 internal LenientObjectPrototype(VsaEngine engine
)
33 this.noExpando
= false;
34 //this.constructor is given a value by the proper constructor class
37 internal void Initialize(LenientFunctionPrototype funcprot
){
38 Type super
= typeof(ObjectPrototype
);
39 this.hasOwnProperty
= new BuiltinFunction("hasOwnProperty", this, super
.GetMethod("hasOwnProperty"), funcprot
);
40 this.isPrototypeOf
= new BuiltinFunction("isPrototypeOf", this, super
.GetMethod("isPrototypeOf"), funcprot
);
41 this.propertyIsEnumerable
= new BuiltinFunction("propertyIsEnumerable", this, super
.GetMethod("propertyIsEnumerable"), funcprot
);
42 this.toLocaleString
= new BuiltinFunction("toLocaleString", this, super
.GetMethod("toLocaleString"), funcprot
);
43 this.toString
= new BuiltinFunction("toString", this, super
.GetMethod("toString"), funcprot
);
44 this.valueOf
= new BuiltinFunction("valueOf", this, super
.GetMethod("valueOf"), funcprot
);